package com.erlang4j.internal.stateMachine;

import com.erlang4j.internal.messages.IMessageHandler;

/** This is a state name with an array of {@link IMessageHandler} that are "active" in this state */
public class StateDefinition implements IStateDefinition{

	private final  String stateName;
	private final IMessageHandler []messageHandlers;
	public StateDefinition(String stateName, IMessageHandler... messageHandlers) {
		this.stateName = stateName;
		this.messageHandlers = messageHandlers;
	}
	@Override
	public IMessageHandler[] getMessageHandler() {
		return messageHandlers;
	}
	@Override
	public String getStateName() {
		return stateName;
	}
}
